﻿@model MyMainSite2.UI.AdminWeb.Models.Admin.SideMenuModel

@if (this.Model.IsLoggedIn)
{
    if (this.Model.HasPageRoles)
    {
        <h3>PAGES</h3>
        <ul class="toggle">
            @if (this.Model.HasPageRead)
            {
                <li class="icn_categories">
                    <a href="/Page/All">All Pages</a>
                </li>
            }

            @if (this.Model.HasPageCreate)
            {
                <li class="icn_new_article">
                    <a href="/Page/Create">Create Page</a>
                </li>
            }
        </ul>
    }

    <h3>USERS</h3>
    <ul class="toggle">
        <li class="icn_profile">
            <a href="/Admin/YourProfile">Your Profile</a>
        </li>
        <li class="icn_jump_back">
            <a href="/Admin/Logout">Logout</a>
        </li>
    </ul>
}